<template>
    <div id="temp1">
        <h4>{{buinfo.title}}</h4>
        <p class="info" v-html='buinfo.content'></p>
    </div>
</template>
<script>
    import common from '../../common.js'
    import { Toast } from 'mint-ui';
    export default {
        data() {
            return {
                id: '',
                buinfo: {},
            }
        },
        created() {
            this.id = this.$route.params.id;
            this.lists();
        },

        methods: {

            lists() {
                var url = common.temurl + '/api/goods/getdesc/' + this.id;
                this.$http.get(url).then(function (res) {
                    if (res.body.message[0].status == 0) {
                        Toast('信息请求出错');
                        return;
                    }
                    this.buinfo = res.body.message[0];
                    
                })
            },
            setimgs() {

            }
        },
    };
</script>
<style scoped>
    #temp1 {
        padding: 5px;
    }
    #temp1>h4 {
        line-height: 30px;
        color: #0094ff;
    }

    .info {
        width: 100%;
        overflow: hidden;
    }
</style>